import vue from 'vue';
import router from 'vue-router';
import editView from './views/pages/editPage/EditView.vue';
import initView from './views/pages/initPage/InitView.vue';
import ListProjectPage from './views/pages/listProject/index.vue'
import FrontPage from './views/pages/FrontPage/index.vue';
import NewProjectPage from './views/pages/NewObjectPage/index.vue';
import OpenProjectPage from "./views/pages/OpenProjectPage/index.vue";

vue.use(router);

const routers = new router({
  // mode: 'history',

  routes: [

    {
      name: 'FrontPage',
      path: '/',
      component: FrontPage,
    },
    {
      name: 'ListProjectPage',
      path: '/list-project',
      component: ListProjectPage,
    },
    {
      name: 'OpenProjectPage',
      path: '/open-project',
      component: OpenProjectPage,
    },
    {
      name: 'viewEdit',
      path: '/view-edit',
      component: editView,
    },

  ],
});

export default routers;
